The Value property is responsible for returning and accepting a value with a specific DataType. When a value is assigned to Value property, it will automatically adjust the FormatType and MaskType (when Display Format or Edit Format is enabled) as well as reflecting the Text property.
The Text property represents value that has already been formatted, validated and masked while the Value property represents the value in original DataType with flatten/unmasked format.
The valid value of text property in WebInput.NET modes:
- Basic Mode
The text shown by the control will display its string value representation. The text edited with original string value representation. The value and text is equal.
- Display Mode
The text shown by the control will display its formatted (according DisplayFormat.Format expression) string value representation. The text edited with original string value representation.
- Edit Mode
The text shown by the control will display its masked (according EditFormat.MaskInfo.MaskExpression expression) string value representation. The text edited with masked string value representation.
- Display and Edit Mode
The text shown by the control will display its formatted (according DisplayFormat.Format expression) string value representation. The text edited with masked (according EditFormat.MaskInfo.MaskExpression expression) string value representation.
![]() |
The Value property does not always have the same value with the Text property. |
In This Section
How-to: Programmatically set, get and clear WebInput value in client side